<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        class Person{
            constructor(name,age){
                this.name=name;
                this.age=age;

            }

            getName(){
                console.log(this.name);
            }

           static getInfo(){
            console.log("bbbb");
           }
        }

        class Student extends Person{

            constructor(schoolName){
                super(name ,age);
                this.schoolName=schoolName;
            }
            studay(){
                console.log("学习");
            }

            getschool(){
                console.log(this.schoolName);
            }
        }

        var s=new Student("小明",15,"二中 ");
        s.getName();
       Student.getInfo();
        s.studay();
    </script>
</body>
</html>